﻿<!DOCTYPE html>
<html>
<head>
    <meta content="text/html; charset=gb2312" />
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link rel="stylesheet" href="@Url.Content("/webresource/css/bootstrap.css")">
    <link rel="stylesheet" href="@Url.Content("/webresource/css/main.css")">
</head>
<body>
    <header class="navbar navbar-static-top nav" id="top" role="banner">
        <div class="container">
            <div class="navbar-header">
                <a href="/" class="navbar-brand">潜啊</a>
                <div class="header-search visible-xs">
                    <i class="icon-h5 icon-search-small"></i>
                    <input type="text" class="form-control" placeholder="搜索目的地/潜店/攻略">
                </div>
            </div>
            <nav class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    @{
                        string path = @HttpContext.Current.Request.Url.AbsolutePath;
                        string home = path == "/" ? "active" : string.Empty;
                        string guide = path.Contains("/guide") ? "active" : string.Empty;
                        string dest = path.Contains("/dest") ? "active" : string.Empty;
                        string shop = path.Contains("/shop") ? "active" : string.Empty;
                        string gonglve = path.Contains("/gonglve") ? "active" : string.Empty;
                        string shequ = path.Contains("/shequ") ? "active" : string.Empty;
                    <li class="@home">
                        <a href="/">首页</a>
                    </li>
                    <li class="@guide">
                        <a>新手入门</a>
                    </li>
                    <li class="@dest">
                        <a href="/dest">目的地</a>
                    </li>
                    <li class="@shop">
                        <a>潜店</a>
                    </li>
                    <li class="@gonglve">
                        <a>攻略</a>
                    </li>
                    <li class="@shequ">
                        <a>社区</a>
                    </li>
                    }
                </ul>
                <ul class="nav navbar-nav navbar-right hidden-xs hidden-md nav-right">
                    <li><a class="icon_wrap" href=""><i class="icon icon-qq on"></i></a></li>
                    <li><a class="icon_wrap" href=""><i class="icon icon-weibo on"></i></a></li>
                    <li><a href="">登录</a></li>
                    <li class="split">|</li>
                    <li><a href="">注册</a></li>
                </ul>
            </nav>
        </div>
    </header>
    @RenderBody()
    <footer class="footer" role="contentinfo">
        <div class="container">
            <p>2004-2015 © 潜啊™ qyer.com All rights reserved. </p>
            <p>潜啊为旅行者提供原创实用的潜水攻略、社区平台，并提供潜店咨询、潜水装备选购等服务。</p>
        </div>
    </footer>
    <footer class="footer-fix">
        @{
      string path_i = @HttpContext.Current.Request.Url.AbsolutePath;
      string home_i = path_i == "/" ? "on" : string.Empty;
      string dest_i = path_i.Contains("/dest") ? "on" : string.Empty;
      string shop_i = path_i.Contains("/shop") ? "on" : string.Empty;
      string my_i = path_i.Contains("/my") ? "on" : string.Empty;
        <ul>
            <li><a href="/"><i class="icon-h5 icon-home @home_i"></i><span>首页</span></a></li>
            <li><a href="/dest"><i class="icon-h5 icon-dest @dest_i"></i>目的地</a></li>
            <li><a><i class="icon-h5 icon-store @shop_i"></i>潜店</a></li>
            <li><a><i class="icon-h5 icon-my @my_i"></i>我的</a></li>
        </ul>
        }
    </footer>
    <script src="@Url.Content("/webresource/libs/jquery.min.js")"></script>
    <script src="@Url.Content("/webresource/libs/underscore.min.js")"></script>
    <script src="@Url.Content("/webresource/libs/bootstrap.min.js")"></script>
    <script src="@Url.Content("/webresource/libs/iscroll.js")"></script>
    <script src="@Url.Content("/webresource/libs/jquery.lazyload.min.js")"></script>
    <script src="@Url.Content("/webresource/libs/gallery.js")"></script>
    @RenderSection("footer")
</body>
</html>
